SftTabs/NET 6.0

OnPartClicked Method, SftTabs Class

Softel vdm, Inc.

Raises the PartClicked event.

Syntax      SftTabs Class (Softelvdm.SftTabsNET)

VB   

Protected Overridable Sub OnPartClicked( _
     ByVal reason As StrategyReasonEnum, _
     ByVal e As PartClickedEventArgs )

C#   

protected virtual void OnPartClicked(
     StrategyReasonEnum reason,
     PartClickedEventArgs e );

C++   

protected: virtual void OnPartClicked(
     StrategyReasonEnum reason,
     PartClickedEventArgs^ e );

e

The event data.

reason

The reason code for this event.

StrategyReasonEnum

Value

Description

Eval

0

The size and position of visible objects is requested.

Paint

1

Rendering is requested.

MouseDown

2

A mouse button down event must be handled.

MouseDown2

3

A mouse button double-click must be handled.

MouseUp

4

A mouse button release must be handled.

Hover

5

A mouse cursor movement must be handled.

Dimensions

6

The dimensions of an object are requested.

Comments

The OnPartClicked method raises the PartClicked event.

Raising an event invokes the event handler through a delegate.

The OnPartClicked method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

When overriding OnPartClicked in a derived class, make sure to call the base class's OnPartClicked method so that registered delegates receive the event.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com